<?php /* Smarty version 2.6.14, created on 2012-11-01 18:14:39
         compiled from imobile_user_messages_view.tpl */
?><?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'imobile_user_messages_view.tpl', 15, false),array('modifier', 'choptext', 'imobile_user_messages_view.tpl', 23, false),array('modifier', 'count', 'imobile_user_messages_view.tpl', 32, false),)), $this);
?><?php
SELanguage::_preload_multi(780,11340040,11340041,801,802,803,796,1321,791);
SELanguage::load();
?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'imobile_header.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div id="topbar">
	<div id="leftnav"> 
		<a href="user_messages.php"><?php echo SELanguage::_get(780); ?></a>
	</div> 
	<div id="title"> 
		<?php echo SELanguage::_get(11340040); ?>
	</div> 
	<div id="bluerightbutton"><a href='user_messages_view.php?pmconvo_id=<?php echo $this->_tpl_vars['pmconvo_info']['pmconvo_id']; ?>
&task=delete'><?php echo SELanguage::_get(11340041); ?></a></div>
</div>

<div id="contentlist">

	<div class="title"><?php echo ((is_array($_tmp=$this->_tpl_vars['pmconvo_info']['pmconvo_subject'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 40, "...", true) : smarty_modifier_truncate($_tmp, 40, "...", true)); ?>
</div>
	<?php ob_start(); 
 unset($this->_sections['coll_loop']);
$this->_sections['coll_loop']['name'] = 'coll_loop';
$this->_sections['coll_loop']['loop'] = is_array($_loop=$this->_tpl_vars['collaborators']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['coll_loop']['show'] = true;
$this->_sections['coll_loop']['max'] = $this->_sections['coll_loop']['loop'];
$this->_sections['coll_loop']['step'] = 1;
$this->_sections['coll_loop']['start'] = $this->_sections['coll_loop']['step'] > 0 ? 0 : $this->_sections['coll_loop']['loop']-1;
if ($this->_sections['coll_loop']['show']) {
    $this->_sections['coll_loop']['total'] = $this->_sections['coll_loop']['loop'];
    if ($this->_sections['coll_loop']['total'] == 0)
        $this->_sections['coll_loop']['show'] = false;
} else
    $this->_sections['coll_loop']['total'] = 0;
if ($this->_sections['coll_loop']['show']):

            for ($this->_sections['coll_loop']['index'] = $this->_sections['coll_loop']['start'], $this->_sections['coll_loop']['iteration'] = 1;
                 $this->_sections['coll_loop']['iteration'] <= $this->_sections['coll_loop']['total'];
                 $this->_sections['coll_loop']['index'] += $this->_sections['coll_loop']['step'], $this->_sections['coll_loop']['iteration']++):
$this->_sections['coll_loop']['rownum'] = $this->_sections['coll_loop']['iteration'];
$this->_sections['coll_loop']['index_prev'] = $this->_sections['coll_loop']['index'] - $this->_sections['coll_loop']['step'];
$this->_sections['coll_loop']['index_next'] = $this->_sections['coll_loop']['index'] + $this->_sections['coll_loop']['step'];
$this->_sections['coll_loop']['first']      = ($this->_sections['coll_loop']['iteration'] == 1);
$this->_sections['coll_loop']['last']       = ($this->_sections['coll_loop']['iteration'] == $this->_sections['coll_loop']['total']);
?><a href='<?php echo $this->_tpl_vars['url']->url_create('profile',$this->_tpl_vars['collaborators'][$this->_sections['coll_loop']['index']]->user_info['user_username']); ?>
'><?php echo $this->_tpl_vars['collaborators'][$this->_sections['coll_loop']['index']]->user_displayname; ?>
</a><?php if ($this->_sections['coll_loop']['last'] != TRUE): ?>, <?php endif; 
 endfor; endif; 
 $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('collaborators', ob_get_contents());ob_end_clean(); ?>
	<div class="descbox"><?php echo sprintf(SELanguage::_get(801), $this->_tpl_vars['collaborators']); ?></div>
	<ul class="messages message_view">
	<?php unset($this->_sections['pm_loop']);
$this->_sections['pm_loop']['name'] = 'pm_loop';
$this->_sections['pm_loop']['loop'] = is_array($_loop=$this->_tpl_vars['pms']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['pm_loop']['show'] = true;
$this->_sections['pm_loop']['max'] = $this->_sections['pm_loop']['loop'];
$this->_sections['pm_loop']['step'] = 1;
$this->_sections['pm_loop']['start'] = $this->_sections['pm_loop']['step'] > 0 ? 0 : $this->_sections['pm_loop']['loop']-1;
if ($this->_sections['pm_loop']['show']) {
    $this->_sections['pm_loop']['total'] = $this->_sections['pm_loop']['loop'];
    if ($this->_sections['pm_loop']['total'] == 0)
        $this->_sections['pm_loop']['show'] = false;
} else
    $this->_sections['pm_loop']['total'] = 0;
if ($this->_sections['pm_loop']['show']):

            for ($this->_sections['pm_loop']['index'] = $this->_sections['pm_loop']['start'], $this->_sections['pm_loop']['iteration'] = 1;
                 $this->_sections['pm_loop']['iteration'] <= $this->_sections['pm_loop']['total'];
                 $this->_sections['pm_loop']['index'] += $this->_sections['pm_loop']['step'], $this->_sections['pm_loop']['iteration']++):
$this->_sections['pm_loop']['rownum'] = $this->_sections['pm_loop']['iteration'];
$this->_sections['pm_loop']['index_prev'] = $this->_sections['pm_loop']['index'] - $this->_sections['pm_loop']['step'];
$this->_sections['pm_loop']['index_next'] = $this->_sections['pm_loop']['index'] + $this->_sections['pm_loop']['step'];
$this->_sections['pm_loop']['first']      = ($this->_sections['pm_loop']['iteration'] == 1);
$this->_sections['pm_loop']['last']       = ($this->_sections['pm_loop']['iteration'] == $this->_sections['pm_loop']['total']);
?>
		<li class="message">
			<img class='icon' src='<?php echo $this->_tpl_vars['pms'][$this->_sections['pm_loop']['index']]['author']->user_photo("./images/nophoto.gif",'TRUE'); ?>
' class='icon' border='0'>
            <span class="name"><a href='<?php echo $this->_tpl_vars['url']->url_create('profile',$this->_tpl_vars['pms'][$this->_sections['pm_loop']['index']]['author']->user_info['user_username']); ?>
'><?php echo $this->_tpl_vars['pms'][$this->_sections['pm_loop']['index']]['author']->user_displayname; ?>
</a></span>
            <span class="comment"><?php echo ((is_array($_tmp=$this->_tpl_vars['pms'][$this->_sections['pm_loop']['index']]['pm_body'])) ? $this->_run_mod_handler('choptext', true, $_tmp, 45, "<br>") : smarty_modifier_choptext($_tmp, 45, "<br>")); ?>
</span>
            <span class="date"><?php echo $this->_tpl_vars['datetime']->cdate(($this->_tpl_vars['setting']['setting_timeformat'])." ".($this->_tpl_vars['setting']['setting_dateformat']),$this->_tpl_vars['datetime']->timezone($this->_tpl_vars['pms'][$this->_sections['pm_loop']['index']]['pm_date'],$this->_tpl_vars['global_timezone'])); ?>
</span>    
		</li>
	<?php endfor; endif; ?>
	</ul>
	
		<ul class="pageitem">
			<li class="feed">
				<img src='./images/icons/action_postcomment.gif' border='0' class='icon'/ >
				<div class="action"><?php if (count($this->_tpl_vars['collaborators']) == 1): 
 echo SELanguage::_get(802); 
 else: 
 echo SELanguage::_get(803); 
 endif; ?></div>
			</li>

			<li class="textbox" id="post_comment_form" style="display: nonex;">
				  <div id='reply_error' style='display: none;'><?php echo SELanguage::_get(796); ?></div>
				  <?php if ($this->_tpl_vars['blockerror']): ?><div id='reply_error2' style='display: <?php echo $this->_tpl_vars['blockerror']; ?>
;'><?php echo SELanguage::_get(1321); ?></div><?php endif; ?>

				  <form action='user_messages_view.php#bottom' method='POST' onSubmit="<?php echo 'if(this.reply.value.replace(/ /g, \'\') == \'\') { $(\'reply_error\').style.display=\'block\'; return false; } else { return true; }'; ?>
">
				<textarea name='reply' id='reply_body' rows="4" placeholder="Write something .."></textarea>
				
				<input type='submit' class='iPush' name="submit" value='<?php echo SELanguage::_get(791); ?>'>
  				<input type='hidden' name='task' value='reply'>
  				<input type='hidden' name='pmconvo_id' value='<?php echo $this->_tpl_vars['pmconvo_info']['pmconvo_id']; ?>
'>
				</form>
			</li>
		</ul>	
	
</div>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'imobile_footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>